package com.cskaoyan.market.controller;

import com.cskaoyan.market.db.domain.MarketCollect;
import com.cskaoyan.market.service.MarketCollectService;
import com.cskaoyan.market.util.ResponseUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

/**
 * @Author: 付诚
 * @Date: 2024/5/6 19:54
 * @Description:
 */
@RestController
@RequestMapping("/admin/collect")
public class AdminCollectController {
    @Autowired
    private MarketCollectService collectService;

    @RequestMapping("/list")
    private Object list(Integer page,Integer limit,String userId,String valueId,String sort,String order)  {

        //处理具体的业务逻辑
        List<MarketCollect> marketCollectList = collectService.list(page, limit, userId, valueId, sort, order);
        //返回响应
        return ResponseUtil.okList(marketCollectList);
    }


}
